package city.spring.modules.medicalstation.medicationRecord.repository;

import city.spring.modules.medicalstation.medicationRecord.entity.MedicationRecordEntity;
import city.spring.modules.medicalstation.medicationRecord.vo.MedicationRecordVO;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 存储库：用药记录
 *
 * @author 谢金婷
 * @date 2020-10-23 16:04:43
 */
@Repository
public interface MedicationRecordRepository extends BaseMapper<MedicationRecordEntity> {
    IPage<MedicationRecordVO> listPage(Page<? extends MedicationRecordEntity> page, @Param(Constants.WRAPPER) Wrapper<? extends MedicationRecordEntity> wrapper);
}